package com.boot.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品表(Product)表实体类
 *
 * @author makejava
 * @since 2023-07-20 18:48:26
 */
@Data
@Accessors(chain = true)
public class Product implements Serializable {
    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //商品名称
    private String productName;
    //封面
    private String cover;
    //单价
    private BigDecimal price;
    //上架状态(0-缺货 -1-下架 1-上架)
    private Integer status;
    //库存
    private Integer inventory;
}

